package com.yaps.petstore.managedbean;



import com.yaps.petstore.dao.CategoryDAO;
import com.yaps.petstore.entity.catalog.Category;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;


@Component("categorybean")
public class CategoryBean implements Serializable {
	
	
private  List<Category> categories ;
@Autowired
private CategoryDAO dao ;
    public List<Category> getCategories() {
        List<Category> categorys = new ArrayList<Category>();
        categorys =dao.findCategories();   
        return categorys;
    }

    public void setCategories(List<Category> categories) {
        this.categories = categories;
    }



    
}
				